package com.hmy.finance.service.receipt.dto;

import cn.hutool.core.bean.BeanUtil;
import com.hmy.ccp.common.dto.ContextUserInfo;
import com.hmy.ccp.error.exception.HMYRuntimeException;
import com.hmy.ccp.starter.web.utils.UserContextUtil;
import com.hmy.finance.api.bo.core.request.enums.ReceiptOffsetBillStatusEnum;
import com.hmy.finance.api.bo.core.request.receiptOffset.ReceiptOffsetAuditRequest;
import com.hmy.finance.api.enums.ReceiptOffsetApprovalNodeEnum;
import com.hmy.finance.dal.po.receipt.ReceiptOffsetBillPo;
import com.hmy.workflow.api.bo.request.task.ApprovalTaskRequest;
import java.io.Serializable;
import java.util.Map;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class ReceiptOffsetRetractDto implements Serializable {
    
    /**
     * 核销单id
     */
    private Long receiptOffsetBillId;

    /**
     * 审批备注
     */
    private String comment;

    /**
     * 当前任务id
     */
    private String processCurrentTaskId;

    /**
     * 当前审批节点
     */
    private String approvalNode;

    /**
     * 核销单
     */
    private ReceiptOffsetBillPo receiptOffsetBillPo;
    
    public static ReceiptOffsetRetractDto convertToDto(ReceiptOffsetAuditRequest request){
        return BeanUtil.copyProperties(request, ReceiptOffsetRetractDto.class);
    }
    
}
